package com.dmap.knowledge.vo;

import com.dmap.knowledge.po.Banner;

import java.io.Serializable;

/**
 * 首页-banner轮播图
 */

public class BannerHistoryVo implements Serializable {

    private String appName;         //app名称
    private String title;           //标题
    private String imageUrl;        //imageUrl
    private long startTime;         //开始时间
    private long endTime;           //结束时间
    private int status;             //状态
    private int sort;               //排序
    private long browseNumber;      //浏览数量
    public BannerHistoryVo() {
    }

    public BannerHistoryVo(Banner banner) {
        if (banner.getAppName() != null) {
            this.appName = banner.getAppName();

        }
        if (banner.getTitle() != null) {
            this.title = banner.getTitle();

        }
        if (banner.getImageUrl() != null) {
            this.imageUrl = banner.getImageUrl();

        }
        if (banner.getStartTime() != null) {
            this.startTime = banner.getStartTime();

        }
        if (banner.getEndTime() != null) {
            this.endTime = banner.getEndTime();

        }
        if (banner.getStatus() != null) {
            this.status = banner.getStatus();

        }
        if (banner.getSort() != null) {
            this.sort = banner.getSort();

        }
        if (banner.getBrowseNumber() != null) {
            this.browseNumber = banner.getBrowseNumber();
        }

    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public long getBrowseNumber() {
        return browseNumber;
    }

    public void setBrowseNumber(long browseNumber) {
        this.browseNumber = browseNumber;
    }
}
